declare namespace Account {
    interface RoleInfo {
        id: number;
        name: string;
        key: string;
    }
    interface DeptInfo {
        dept_id: number;
        dept_name: string;
        created_at: string;
    }
    interface AcountInfo {
        user_id: number;
        dept_id: number;
        username: string;
        nickname: string;
        avatar: string,
        phone?: string;
        email?: string;
        sex: 0 | 1 | 2;
        remark: string;
        created_at: string;
        updated_at: string;
        roles: RoleInfo[];
        dept?: DeptInfo
    }
    type AcountUpdateDo = Omit<AcountInfo, 'username' | 'user_id' | 'dept_id' | 'remark' | 'roles' | 'dept' | 'created_at' | 'updated_at'> & { avatar?: string }

}